<link rel="stylesheet" type="text/css" href="css/page.css"/>
<link rel="stylesheet" type="text/css" href="http://www.16u.cc/d/css/JsPage.css" />
<script type="text/javascript" src="js/Calendar.js"></script>
<script type="text/javascript" src="http://www.16u.com/manage/finance/js/JsPage.js"></script>
<style>
.disredtab{ width:100%; text-align:center; margin:20px 0;}
.disredtab thead{ border:1px solid #DDEEFB; background:#F3FAFF;}
.disredtab th{ text-align:center; height:30px; line-height:30px;}
.disredtab td{ padding:8px 0; line-height:18px; border-bottom:1px solid #DDD; text-align:center;}
.disredtab td.txtlf{ text-align:left; padding-left:15px;}
.disredtab td.add{ color:#090;}
.disredtab td.redu{ color:#F00;}
.disredtab tfoot td.txtrig{ text-align:right;}
.disredtab tfoot td{ font-weight:bold;}
.disredtab td.lm{ color:#45637F; font-weight:bold;}
.search_zjl{margin-top:15px;color:#666;line-height:35px; padding-left:15px;}
.time{ height:18px; line-height:18px; padding:2px 4px;background: url("images/rili.png") no-repeat scroll right center white;border: 1px solid #7F9DB9; padding-right:20px; width:90px;}
.zjlbtn{display: inline-block;width:81px;height:30px;border:0;background:url(../images/search.png) no-repeat;cursor:pointer; margin-left:30px;}
.zjlbtn:hover{ background-position:left bottom;}
.searchBtn {display: inline-block;height: 32px;cursor: pointer;font-size: 0;
border: 0 none;text-indent: -9999px;background: url(../images/order/ysearchBtn.gif) no-repeat;}
.dcexcleBtn {width: 84px;background-position: right top;}
.queryBtn {position: relative;width: 86px;background-position: left top;margin-right: 10px;margin-left:10px;}
</style>

<div class="r_content">
    <h3 class="mc_title">
        <span class=""><a href="rrecord.html" class="">分销商资金记录</a></span>
        <span class="mctit_1"><span class="mctit_2">成员资金查看</span></span>
    </h3>
    <div class="search_zjl">
    	<form>
        	<b>时间查询：</b>
			<input type="hidden" value="" name="act" id="act"/>
        	<!-- <span><input type="text" class="time" name="op" id="begintime" onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$op?>" /> </span> 到  -->
            <span><input type="text" class="time" name="ed" id="endDate" onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$ed?>"/></span>
            <!-- <span><input type="submit" value="" class="zjlbtn" /></span> -->
			<input  type="submit" value="查 询" class="queryBtn searchBtn">
			<a href="javascript:void(0);" class="dcexcleBtn searchBtn" id="excel">导出excel</a>
        </form>
    </div>
    <table class="disredtab">
        <thead>
            <th>成员名称</th>
            <th>时时账户金额</th>
        </thead>
        <tbody>
        <?foreach($ids as $k=>$v){?>
            <tr>
                <td class="txtlf"><?=$v?></td>
                <td class="lm"><?=$lmoney[$k]/100?></td>
            </tr>
        <?}?>
    	</tbody>
        <tfoot>
        	<td class="txtrig">总金额：</td>
        	<td class="lm"><?=$all/100?></td>
        </tfoot>
    </table>
	<div class="" id="clear"></div>
<script type="text/javascript">
var addDivFunc=function(div){
	var settle=document.getElementById("clear");
	settle.parentNode.insertBefore(div,settle);
}
var trs=[];//document.getElementsByTagName("tr"),
var lists=[];
$("table tbody tr").each(function(i,e){
	trs.push(e);
});
for(var i=0,len=trs.length;i<len;i++){
	lists.push(trs[i]);
}
var Jspage=new JsPage(20,lists.length,lists,addDivFunc);
Jspage.showpage(0);

$(function(){
	
	$("#excel").click(function(){
		// alert('');
		$("#act").val("loadExcel");
		$("form").submit();
		$("#act").val("");
	});
})

</script>
</div>